package tgc.edu.zz.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import org.springframework.data.annotation.CreatedBy;

//博客类
@Entity
public class BlogVo {

	private Integer id;
	private String title; //标题
	private String text; //内容
	private boolean look;//是否私密/公开
	private PersionVo persion;//发布人
	private BlogTypeVo blogType; //博客类型
	private String time;//发布时间
	private String newTime;//最后一次更新时间
	
	@Id
	@GeneratedValue
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	@Column(columnDefinition="LONGTEXT")
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	
	public boolean isLook() {
		return look;
	}
	public void setLook(boolean look) {
		this.look = look;
	}
	@ManyToOne
	@CreatedBy
	public PersionVo getPersion() {
		return persion;
	}
	public void setPersion(PersionVo persion) {
		this.persion = persion;
	}
	@ManyToOne
	@CreatedBy
	public BlogTypeVo getBlogType() {
		return blogType;
	}
	public void setBlogType(BlogTypeVo blogType) {
		this.blogType = blogType;
	}
	public String getTime() {
		return time;
	}
	public void setTime(String time) {
		this.time = time;
	}
	public String getNewTime() {
		return newTime;
	}
	public void setNewTime(String newTime) {
		this.newTime = newTime;
	}
	
	
	
}
